import request from '@/utils/request'

// 查询员工社保列表
export function listEmployeeSocialSecurity(query) {
  return request({
    url: '/system/employee_social_security/list',
    method: 'get',
    params: query
  })
}

// 查询员工社保详细
export function getEmployeeSocialSecurity(securityId) {
  return request({
    url: '/system/employee_social_security/' + securityId,
    method: 'get'
  })
}

// 新增员工社保
export function addEmployeeSocialSecurity(data) {
  return request({
    url: '/system/employee_social_security',
    method: 'post',
    data: data
  })
}

// 修改员工社保
export function updateEmployeeSocialSecurity(securityId, data) {
  return request({
    url: '/system/employee_social_security/' + securityId,
    method: 'put',
    data: data
  })
}

// 删除员工社保
export function delEmployeeSocialSecurity(securityId) {
  return request({
    url: '/system/employee_social_security/' + securityId,
    method: 'delete'
  })
}

// 导出员工社保
export function exportEmployeeSocialSecurity(query) {
  return request({
    url: '/system/employee_social_security/export',
    method: 'get',
    params: query
  })
} 